package cn.tedu.csmall.passport.service.impl;

import cn.tedu.csmall.passport.mapper.RoleMapper;
import cn.tedu.csmall.passport.pojo.vo.RoleListItemVO;
import cn.tedu.csmall.passport.service.IRoleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Administrator
* @description 针对表【ams_role(角色)】的数据库操作Service实现
* @createDate 2023-06-19 17:49:17
*/
@Service
@Slf4j
public class RoleServiceImpl implements IRoleService {


    @Autowired
    private RoleMapper roleMapper;


    @Override
    public List<RoleListItemVO> list() {
        log.debug("开始处理[查询角色列表]的业务");
        List<RoleListItemVO> list = roleMapper.list();
        return list;
    }
}




